import java.util.Scanner;

/**
 * @author zhaoqian
 * @create 2021/8/31 10:38
 */
public class fourfive {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        while (in.hasNext()){
            float v = in.nextFloat();
            int v1 = (int) v;
            if (v-v1>=0.5){
                System.out.println((int)(v+0.5));
            }else {
                System.out.println((int)v1 );
            }
        }
    }
}
